package com.cq.hd.system.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.system.api.vo.RegionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "hd-o2o-system-service", contextId = "regions-api")
public interface TbRegionsApi {

    // 根据id获取省市列表数据
    @GetMapping("/system/regions/listRegion")
    Result<List<RegionVo>> listRegion(@RequestParam("id") Integer id);

    // 获取省市列表所有数据
    @GetMapping("/system/regions/listAllRegion")
    Result<List<RegionVo>> listAllRegion(@RequestParam("cityName") String cityName);

}
